package com.easyapi.server.service.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easyapi.common.param.project.AddProjectParam;
import com.easyapi.common.param.project.ProjectPageParam;
import com.easyapi.common.utils.BaseResponse;
import com.easyapi.common.vo.datasource.DataSourceListVo;
import com.easyapi.common.vo.project.ProjectListVo;
import com.easyapi.common.vo.project.ProjectVo;
import com.easyapi.dao.entity.api.ApiCenterProject;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author javadadi
 */
public interface ProjectService extends IService<ApiCenterProject> {

    boolean saveProject(AddProjectParam param);

    Page<ProjectVo> page(ProjectPageParam param);

    boolean addProjectDatasource(Long projectId, Long datasourceId);

    boolean removeProjectDatasource(Long projectId, Long datasourceId);

    List<ProjectListVo> listProject(String projectName);
}
